/* main navigation */
#main-nav {
    height: 30px;
    background: transparent url(../images/main-nav-bg.jpg) repeat-x top left;
}

#main-nav li a {
    color: #fff;
    line-height: 30px;
    display: block;
    width: 120px;
    padding-left: 20px;
    background: transparent url(../images/main-nav-bg.jpg) repeat-x top left;
}

#main-nav ul a {
    width: 170px;
}

#main-nav>li>a {
    border-right: 1px solid #fff;
}

#main-nav>li {
    float: left;
}

#main-nav li {
    position: relative;
}

/* Sub menus */
#main-nav ul {
    position: absolute;
    display: none;
}

#main-nav ul a {
    border-top: 1px solid #fff;
}

/* fix left border for first level menu */
#main-nav>li:last-child>a {
    border: none;
}

#main-nav a:hover {
    background-position: 0 -30px;
}

#main-nav ul li {
    float: none;
}

#main-nav ul ul a {
    border-left: 1px solid #fff;
    background: #fff url(../images/main-sub-nav-bg.jpg) repeat-x top left;
}